package com.aosiding.controller;

import com.aosiding.pojo.Product;
import com.aosiding.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @version 1.0
 * @Author AO SIDING
 * Created on 2022/9/16 23:48
 */
@RestController
@RequestMapping("/product")
public class ProductController {
    @Autowired
    private ProductService productService;

    @GetMapping("list")
    public List<Product> selectProductList(){
        return productService.selectProductList();
    }
}
